package
{
	import flash.display.Sprite;
	
	public class TestScrollRect extends Sprite
	{
		public function TestScrollRect()
		{
			super();
			
			import flash.display.Sprite;
			import flash.geom.Rectangle;
			import flash.events.MouseEvent;
			
			var circle:Sprite = new Sprite();
			circle.graphics.beginFill(0xFFCC00);
			circle.graphics.drawCircle(200, 200, 200);
			circle.scrollRect = new Rectangle(50, 50, 200, 200);
			addChild(circle);
			
			circle.addEventListener(MouseEvent.CLICK, clicked);
			
			function clicked(event:MouseEvent):void {
				var rect:Rectangle = event.target.scrollRect;
				rect.y -= 5;
				event.target.scrollRect = rect;
			}

		}
	}
}